﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="EdicionUsuarios.ascx.cs" Inherits="WebArchivosTelefonica.EdicionUsuarios" %>
<asp:ChangePassword ID="ChangePassword1" runat="server" BackColor="#E3EAEB" 
    BorderColor="#E6E2D8" BorderPadding="4" BorderStyle="Solid" BorderWidth="1px" 
    Font-Names="Verdana" Font-Size="0.8em">
    <CancelButtonStyle BackColor="White" BorderColor="#C5BBAF" BorderStyle="Solid" 
        BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#1C5E55" />
    <PasswordHintStyle Font-Italic="True" ForeColor="#1C5E55" />
    <ContinueButtonStyle BackColor="White" BorderColor="#C5BBAF" 
        BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" 
        ForeColor="#1C5E55" />
    <ChangePasswordButtonStyle BackColor="White" BorderColor="#C5BBAF" 
        BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" 
        ForeColor="#1C5E55" />
    <TitleTextStyle BackColor="#1C5E55" Font-Bold="True" Font-Size="0.9em" 
        ForeColor="White" />
    <ChangePasswordTemplate>
        <table border="0" cellpadding="4" cellspacing="0" 
            style="border-collapse:collapse;">
            <tr>
                <td>
                    <table border="0" cellpadding="0">
                        <tr>
                            <td align="center" colspan="2" 
                                style="color:White;background-color:#6699ff;font-size:0.9em;font-weight:bold;">
                                <asp:Label ID="LabelTitulo" runat="server" Text="Cambiar contraseña." Font-Names="Verdana" Font-Size="X-Small"></asp:Label></td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="CurrentPasswordLabel" runat="server" 
                                    AssociatedControlID="CurrentPassword" Text="Contraseña: " Font-Names="Verdana" Font-Size="X-Small"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="CurrentPassword" runat="server" Font-Size="0.8em" 
                                    TextMode="Password"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="CurrentPasswordRequired" runat="server" 
                                    ControlToValidate="CurrentPassword" ErrorMessage="Contraseña requerida." 
                                    ToolTip="Contraseña requerida." ValidationGroup="ctl00$ChangePassword1">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="NewPasswordLabel" runat="server" 
                                    AssociatedControlID="NewPassword" Text="Nueva contraseña: " Font-Names="Verdana" Font-Size="X-Small"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="NewPassword" runat="server" Font-Size="0.8em" 
                                    TextMode="Password"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="NewPasswordRequired" runat="server" 
                                    ControlToValidate="NewPassword" ErrorMessage="Nueva contraseña requerida" 
                                    ToolTip="Nueva contraseña requerida" ValidationGroup="ctl00$ChangePassword1">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="ConfirmNewPasswordLabel" runat="server" 
                                    AssociatedControlID="ConfirmNewPassword" Text="Confirmar nueva contraseña:  " Font-Names="Verdana" Font-Size="X-Small"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="ConfirmNewPassword" runat="server" Font-Size="0.8em" 
                                    TextMode="Password"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="ConfirmNewPasswordRequired" runat="server" 
                                    ControlToValidate="ConfirmNewPassword" 
                                    ErrorMessage="Confirmar nueva contraseña requerido." 
                                    ToolTip="Confirmar nueva contraseña requerido." 
                                    ValidationGroup="ctl00$ChangePassword1">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" colspan="2">
                                <asp:CompareValidator ID="NewPasswordCompare" runat="server" 
                                    ControlToCompare="NewPassword" ControlToValidate="ConfirmNewPassword" 
                                    Display="Dynamic" 
                                    ErrorMessage="Las nueva contraseña y la confirmacion deben ser iguales." 
                                    ValidationGroup="ctl00$ChangePassword1" Font-Names="Verdana" 
                                    Font-Size="X-Small"></asp:CompareValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" colspan="2" style="color:Red;">
                                <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Button ID="ChangePasswordPushButton" runat="server" BackColor="White" 
                                    BorderColor="#C5BBAF" BorderStyle="Solid" BorderWidth="1px" 
                                    CommandName="ChangePassword" Font-Names="Verdana" Font-Size="0.8em" 
                                    ForeColor="#1C5E55" Text="Cambiar contraseña" 
                                    ValidationGroup="ctl00$ChangePassword1" />
                            </td>
                            <td>
                                <asp:Button ID="CancelPushButton" runat="server" BackColor="White" 
                                    BorderColor="#C5BBAF" BorderStyle="Solid" BorderWidth="1px" 
                                    CausesValidation="False" CommandName="Cancel" Font-Names="Verdana" 
                                    Font-Size="0.8em" ForeColor="#1C5E55" Text="Cancelar" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </ChangePasswordTemplate>
    <SuccessTemplate>
        <table border="0" cellpadding="4" cellspacing="0" 
            style="border-collapse:collapse;">
            <tr>
                <td>
                    <table border="0" cellpadding="0">
                        <tr>
                            <td align="center" 
                                
                                style="color:White;background-color:#6699ff;font-size:x-small;font-weight:bold;">
                                Cambio de contraseña completado</td>
                        </tr>
                        <tr>
                            <td style="font-size:x-small; font-family:Verdana;">
                                Se ha cambiado correctamente la contraseña</td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Button ID="ContinuePushButton" runat="server" BackColor="White" 
                                    BorderColor="#C5BBAF" BorderStyle="Solid" BorderWidth="1px" 
                                    CausesValidation="False" CommandName="Continue" Font-Names="Verdana" 
                                    Font-Size="0.8em" ForeColor="#1C5E55" Text="Continuar" 
                                    PostBackUrl="~/Archivos.aspx" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </SuccessTemplate>
    <TextBoxStyle Font-Size="0.8em" />
    <InstructionTextStyle Font-Italic="True" ForeColor="Black" />
</asp:ChangePassword>
